//引入组件
import { createBrowserRouter } from 'react-router-dom'
import Layout from "@/pages/Layout";  //src/pages/layout
import Login from "@/pages/Login";

//配置路由实例
const router = createBrowserRouter([
    {
        path:'/',
        element:<Layout/>
    },
    {
        path: '/login',
        element: <Login />
    }
])

export default router

